﻿using System;
using System.Windows;
using System.Reflection;
using AppInfo;

namespace WpfChess
{
    public partial class WpfAbout : Window
    {
        public WpfAbout ()
        {
            InitializeComponent();

            Assembly assembly = Assembly.GetExecutingAssembly();

            Title = "About " + AppAbout.Title (assembly);

            titleText.Text = AppAbout.Product (assembly);
            versionText.Text = "Version " + AppAbout.Version (assembly);
            legalText.Text = AppAbout.Copyright (assembly);
            descriptionText.Text = AppAbout.Description (assembly);
        }

        private void okButton_Click (object sender, RoutedEventArgs args)
        {
            DialogResult = true;
        }
    }
}
